Integrand size = 18, antiderivative size = 38 \[ \int \frac {x \cos (a+b x)}{\sqrt {\sin (a+b x)}} \, dx=-\frac {4 E\left (\left .\frac {1}{2} \left (a-\frac {\pi }{2}+b x\right )\right |2\right )}{b^2}+\frac {2 x \sqrt {\sin (a+b x)}}{b} \]
[Out]
Time = 0.03 (sec) , antiderivative size = 38, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.111, Rules used = {3524, 2719} \[ \int \frac {x \cos (a+b x)}{\sqrt {\sin (a+b x)}} \, dx=\frac {2 x \sqrt {\sin (a+b x)}}{b}-\frac {4 E\left (\left .\frac {1}{2} \left (a+b x-\frac {\pi }{2}\right )\right |2\right )}{b^2} \]
[In]
[Out]
Rule 2719
Rule 3524
Rubi steps \begin{align*} \text {integral}& = \frac {2 x \sqrt {\sin (a+b x)}}{b}-\frac {2 \int \sqrt {\sin (a+b x)} \, dx}{b} \\ & = -\frac {4 E\left (\left .\frac {1}{2} \left (a-\frac {\pi }{2}+b x\right )\right |2\right )}{b^2}+\frac {2 x \sqrt {\sin (a+b x)}}{b} \\ \end{align*}
Result contains higher order function than in optimal. Order 5 vs. order 4 in optimal.
Time = 6.57 (sec) , antiderivative size = 86, normalized size of antiderivative = 2.26 \[ \int \frac {x \cos (a+b x)}{\sqrt {\sin (a+b x)}} \, dx=\frac {2 \sqrt {\sin (a+b x)} \left (3 b x-6 \tan \left (\frac {1}{2} (a+b x)\right )+2 \operatorname {Hypergeometric2F1}\left (\frac {1}{2},\frac {3}{4},\frac {7}{4},-\tan ^2\left (\frac {1}{2} (a+b x)\right )\right ) \sqrt {\sec ^2\left (\frac {1}{2} (a+b x)\right )} \tan \left (\frac {1}{2} (a+b x)\right )\right )}{3 b^2} \]
[In]
[Out]
Result contains complex when optimal does not.
Time = 0.37 (sec) , antiderivative size = 308, normalized size of antiderivative = 8.11
method | result | size |
risch | \(-\frac {i \left (x b +2 i\right ) \left ({\mathrm e}^{2 i \left (x b +a \right )}-1\right ) \sqrt {2}\, {\mathrm e}^{-i \left (x b +a \right )}}{b^{2} \sqrt {-i \left ({\mathrm e}^{2 i \left (x b +a \right )}-1\right ) {\mathrm e}^{-i \left (x b +a \right )}}}-\frac {2 \left (\frac {2 i \left (i-i {\mathrm e}^{2 i \left (x b +a \right )}\right )}{\sqrt {{\mathrm e}^{i \left (x b +a \right )} \left (i-i {\mathrm e}^{2 i \left (x b +a \right )}\right )}}-\frac {\sqrt {{\mathrm e}^{i \left (x b +a \right )}+1}\, \sqrt {-2 \,{\mathrm e}^{i \left (x b +a \right )}+2}\, \sqrt {-{\mathrm e}^{i \left (x b +a \right )}}\, \left (-2 \operatorname {EllipticE}\left (\sqrt {{\mathrm e}^{i \left (x b +a \right )}+1}, \frac {\sqrt {2}}{2}\right )+\operatorname {EllipticF}\left (\sqrt {{\mathrm e}^{i \left (x b +a \right )}+1}, \frac {\sqrt {2}}{2}\right )\right )}{\sqrt {-i {\mathrm e}^{3 i \left (x b +a \right )}+i {\mathrm e}^{i \left (x b +a \right )}}}\right ) \sqrt {2}\, \sqrt {-i \left ({\mathrm e}^{2 i \left (x b +a \right )}-1\right ) {\mathrm e}^{i \left (x b +a \right )}}\, {\mathrm e}^{-i \left (x b +a \right )}}{b^{2} \sqrt {-i \left ({\mathrm e}^{2 i \left (x b +a \right )}-1\right ) {\mathrm e}^{-i \left (x b +a \right )}}}\) | \(308\) |
[In]
[Out]
Exception generated. \[ \int \frac {x \cos (a+b x)}{\sqrt {\sin (a+b x)}} \, dx=\text {Exception raised: TypeError} \]
[In]
[Out]
\[ \int \frac {x \cos (a+b x)}{\sqrt {\sin (a+b x)}} \, dx=\int \frac {x \cos {\left (a + b x \right )}}{\sqrt {\sin {\left (a + b x \right )}}}\, dx \]
[In]
[Out]
\[ \int \frac {x \cos (a+b x)}{\sqrt {\sin (a+b x)}} \, dx=\int { \frac {x \cos \left (b x + a\right )}{\sqrt {\sin \left (b x + a\right )}} \,d x } \]
[In]
[Out]
\[ \int \frac {x \cos (a+b x)}{\sqrt {\sin (a+b x)}} \, dx=\int { \frac {x \cos \left (b x + a\right )}{\sqrt {\sin \left (b x + a\right )}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {x \cos (a+b x)}{\sqrt {\sin (a+b x)}} \, dx=\int \frac {x\,\cos \left (a+b\,x\right )}{\sqrt {\sin \left (a+b\,x\right )}} \,d x \]
[In]
[Out]